window.onload = function(){
  (function() {
    // 控制根字体大小
    let winWidth = document.body.clientWidth;
    if ( winWidth > 1080 ) {
      winWidth = 1080;
    }
    document.querySelector('html').style.fontSize = winWidth/27 + 'px';
    window.addEventListener('orientationchange', function(event){
      winWidth = document.body.clientWidth;
      if ( winWidth > 1080 ) {
        winWidth = 1080;
      }
      document.querySelector('html').style.fontSize = winWidth/27 + 'px';
    });

  })();
}



